#include<stdio.h>
#include<math.h>

void findNumbers(double sum, double pro, double *num1, double *num2);
 
 int main (){
 	double sum,  pro,  num1,  num2;
 	
 	printf("Enter the prodect and sum of twe numbers:  ");
 	scanf("%lf %lf", &pro, &sum);
 	
 	if (sum*sum - 4*pro >= 0){
 	 findNumbers( sum,  pro,  &num1,  &num2);
 	 printf("num1 = %lf, num2 = %lf", num1, num2);
 	
 	
	 }else 	printf("Error");
	 	
	 
 	
 	return 0;
 }
 //************//
 
 void findNumbers(double sum, double pro, double *num1, double *num2){
 *num1 = (sum + sqrt(sum*sum - 4.0 *pro)) / 2.0;
 *num2 = sum - *num1;
 
 return;	
 }
